package cn.kbyue.security.controller;

import cn.kbyue.security.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kbyue
 * @version 0.0.1
 * @date 2021/9/14 18:46
 */
@RestController
public class IndexController {

    @GetMapping("home")
    public Result<String> home() {
        return Result.success("home: ", "go home!");
    }

    @GetMapping("api/test/str")
    public Result<String> test(String param) {
        return Result.success("传递参数为： ", param);
    }

    @GetMapping("list/user")
    public Result<String> list() {
        return Result.success("访问接口", "list/user");
    }

}
